package PlayingCards;

import javafx.print.Collation;
import sun.text.resources.pl.CollationData_pl;

import java.util.*;

public class PlayingCards {

    public static void main(String[] args) {

        Cards cards=new Cards();

        List<String> poker=cards.Add();

        Collections.shuffle(poker);
        //三家
        Set<String> lijuhua=new HashSet<>();

        for (int i=0;i<17;i++){

            lijuhua.add(poker.get(i));
        }

        Set<String> wanggangdan=new HashSet<>();

        for (int i=17;i<34;i++){

            wanggangdan.add(poker.get(i));
        }

        Set<String> zhourunfa=new HashSet<>();

        for (int i=34;i<51;i++){

            zhourunfa.add(poker.get(i));
        }

        //底牌
        Set<String> dipai=new HashSet<>();

        for (int i=51;i<54;i++){

            dipai.add(poker.get(i));
        }

        System.out.println("李菊花的牌有"+lijuhua.size()+"张"+"\n"+"李菊花的牌是："+lijuhua);

        System.out.println("王钢蛋的牌有"+wanggangdan.size()+"张"+"\n"+"王钢蛋的牌是："+wanggangdan);

        System.out.println("周润发的牌有"+zhourunfa.size()+"张"+"\n"+"周润发的牌是："+zhourunfa);

        System.out.println("底牌有"+dipai.size()+"张"+"\n"+"底牌是："+dipai);

    }
}
